'use strict';
const db = uniCloud.database()
const collection = db.collection('tableImages') //云数据库里的表名 ，记录上传图片到云存储后返回的fileID

exports.main = async (event, context) => {
	const res = await collection.add(event) //event为客户端上传的参数
	return res
};
